package cn.wzg.client;

import cn.wzg.client.Client.impl.BIOClient;
import cn.wzg.client.Client.impl.NettyRPCClient;
import cn.wzg.entity.User;
import cn.wzg.server.Service.UserService;

public class MainClient {
    public static void main(String[] args) {
        NettyRPCClient nettyClient = new NettyRPCClient();
        ClientProxy clientProxy = new ClientProxy(nettyClient);
        UserService UserProxy = clientProxy.getProxy(UserService.class);
        User user = UserProxy.getUserById(12);
        System.out.println(user);
        User user1 = UserProxy.getUserById(13);
        System.out.println(user1);
    }
}
